package tests;

import static org.junit.Assert.*;

import java.util.Date;

import paydayTransaction.PaydayTransaction;
import main.Paycheck;

public class TestPaycheck {
	
	public static void validatePaycheck(PaydayTransaction pt, int empid, Date payDate, double pay) {
		Paycheck pc = pt.getPaycheck(empid);
		assertNotNull(pc);
		assertEquals(payDate, pc.getPayDate());
		assertEquals(pay, pc.getGrossPay(), .001);
		assertEquals("Hold", pc.getField("Disposition"));
		assertEquals(0.0, pc.getDeductions(), .001);
		assertEquals(pay, pc.getNetPay(), .001);
	}
}
